import request from '@/utils/request'

export const listHouseCollectApi = (query) => {
    return request({
        url: '/house/collect/list',
        method: 'get',
        params: query
    })
}

export const addHouseCollectApi = (data) => {
    return request({
        url: '/house/collect',
        method: 'post',
        data: data
    })
}

export const cancelHouseCollectApi = (data) => {
    return request({
        url: '/house/collect/cancel',
        method: 'delete',
        data: data
    })
}

export const myCollectApi = (id) => {
    return request({
        url: '/house/collect/my/' + id,
        method: 'get',
    })
}
